﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: WorkEntity.cs
// 修改时间：2020-9-8 10:40:14
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Work 的实体类.
	/// </summary>
	[Table("Work")]
	public partial class WorkEntity
	{
		#region Properties
		private int? _workID = 0;
		/// <summary>
		/// ID(主键)
		/// </summary>
		[Column("WorkID",TypeName="int")]
		[Key]
		public int? WorkID
		{
			get {return _workID;}
			set {_workID = value;}
		}
		
		private System.String _workName = string.Empty;
		/// <summary>
		/// 标题
		/// </summary>
		[Column("WorkName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String WorkName
		{
			get {return _workName;}
			set {_workName = value;}
		}
		
		private int? _workCategoryID = 0;
		/// <summary>
		/// 类别ID
		/// </summary>
		[Column("WorkCategoryID",TypeName="int")]
		public int? WorkCategoryID
		{
			get {return _workCategoryID;}
			set {_workCategoryID = value;}
		}
		
		private System.String _userName = string.Empty;
		/// <summary>
		/// 用户名
		/// </summary>
		[Column("UserName",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserName
		{
			get {return _userName;}
			set {_userName = value;}
		}
		
		private System.String _ip = string.Empty;
		/// <summary>
		/// IP
		/// </summary>
		[Column("IP",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String IP
		{
			get {return _ip;}
			set {_ip = value;}
		}
		
		private DateTime? _inputTime = null;
		/// <summary>
		/// 提交时间
		/// </summary>
		[Column("InputTime",TypeName="datetime")]
		public DateTime? InputTime
		{
			get {return _inputTime;}
			set {_inputTime = value;}
		}
		
		private int? _formID = 0;
		/// <summary>
		/// 自定义表单ID
		/// </summary>
		[Column("FormID",TypeName="int")]
		public int? FormID
		{
			get {return _formID;}
			set {_formID = value;}
		}
		
		private System.String _formTable = string.Empty;
		/// <summary>
		/// 自定义表单表名
		/// </summary>
		[Column("FormTable",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String FormTable
		{
			get {return _formTable;}
			set {_formTable = value;}
		}
		
		private System.String _flowID = string.Empty;
		/// <summary>
		/// 流程ID
		/// </summary>
		[Column("FlowID",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String FlowID
		{
			get {return _flowID;}
			set {_flowID = value;}
		}
		
		private int? _status = 0;
		/// <summary>
		/// 状态
		/// </summary>
		[Column("Status",TypeName="int")]
		public int? Status
		{
			get {return _status;}
			set {_status = value;}
		}
		
		#endregion
	}
}
